export type response<T> = {
	code: number
	message: string
	data: T
}

export type dealRes<T> = {
	message: string
	data: T
}

// 分页类型
export type pageList<T> = {
	endRow: number
	hasNextPage: boolean
	hasPreviousPage: boolean
	isFirstPage: boolean
	isLastPage: boolean
	list: T[]
	navigateFirstPage: number
	navigateLastPage: number
	navigatePages: number
	navigatepageNums: number[]
	nextPage: number
	pageNum: number
	pagesize: number
	pages: number
	prePage: number
	size: number
	startRow: number
	total: number
}

// 登录成功，返回的数据类型
export type tokenResult = {
	tokenHeader: string
	token: string
}

// 登录页数据类型
export type LoginFormInterface = {
	username: string
	password: string
}

// 导航栏菜单类型
export type MenuList = {
	menuId: number
	url: string
	path: string
	redirect: string
	component: string
	name: string
	icon: string
	pid: number
	children: Array<MenuList>
}

// 公告类型
export type Notice = {
	noticeId?: number
	title: string
	context: string
	createTime?: string
	time?: string[]
}

// 建议类型
export type Advise = {
	adviseId?: number
	context?: string
	status?: string
	createTime?: string
	reply?: string
	time?: string[]
}

// 管理员用户类型
export type Staff = {
	staffId?: number
	username?: string
	password?: string
	email?: string
	telephone?: string
	idCard?: string
	picture?: string
	address?: string
	status?: boolean
	remark?: string
	bool?: boolean
}

// 修改密码的类型
export type Password = { id?: number, oldPassword: string, newPassword: string }

// 房区基本的类型
export type Area = {
	areaId: number
	areaName: string
	status: boolean
	updateTime: string
}

// 病房的dto类型
export type RoomDto = {
	roomId?: number
	name?: string
	status?: boolean
	disinfection?: boolean
	updateTime?: string
	roomRemark?: string
	uname?: string
	age?: number
	telephone?: string
	picture?: string
	phone?: string
	userRemark?: string
	areaName?: string
}

// 志愿者类型
export type Volunteer = {
	staffId?: number
	username?: string
	password?: string
	email?: string
	telephone?: string
	idCard?: string
	picture?: string
	address?: string
	status?: boolean
	remark?: string
	areaName?: string
	areaId?: number
}

// 志愿者基础类型
export type Vol = {
	staffId?: number
	username?: string
	idCard?: string
	telephone?: string
	areaId?: number
}

